define({ "api": [
  {
    "type": "post",
    "url": "/hybrid/uni/add-area",
    "title": "添加地址接口",
    "description": "<p>添加地址接口</p>",
    "group": "Adress",
    "name": "add-area",
    "parameter": {
      "fields": {
        "Parameter": [
          {
            "group": "Parameter",
            "optional": false,
            "field": "req.body.content",
            "description": ""
          }
        ]
      }
    },
    "success": {
      "examples": [
        {
          "title": "Success-response:",
          "content": "res.json({\n    code: 200,\n    status: 0,\n    msg: \"添加地址成功\",\n    result: 1\n   })",
          "type": "json"
        }
      ]
    },
    "sampleRequest": [
      {
        "url": "/uni/add-area"
      }
    ],
    "version": "1.0.0",
    "filename": "routes/vue.js",
    "groupTitle": "Adress"
  },
  {
    "type": "post",
    "url": "/hybrid/uni/delete-area",
    "title": "删地址",
    "description": "<p>删地址</p>",
    "group": "Adress",
    "name": "delete-area",
    "parameter": {
      "fields": {
        "Parameter": [
          {
            "group": "Parameter",
            "optional": false,
            "field": "id",
            "description": "<p>地址id</p>"
          }
        ]
      }
    },
    "success": {
      "examples": [
        {
          "title": "Success-response:",
          "content": "res.json({\n    code: 200,\n    status: 0,\n    msg: \"删除成功\",\n    result: Array\n   })",
          "type": "json"
        }
      ]
    },
    "sampleRequest": [
      {
        "url": "/uni/delete-area"
      }
    ],
    "version": "1.0.0",
    "filename": "routes/vue.js",
    "groupTitle": "Adress"
  },
  {
    "type": "post",
    "url": "/hybrid/uni/getarea",
    "title": "获取地址列表接口",
    "description": "<p>获取地址列表接口</p>",
    "group": "Adress",
    "name": "getarea",
    "parameter": {
      "fields": {
        "Parameter": [
          {
            "group": "Parameter",
            "optional": false,
            "field": "id",
            "description": "<p>地址id</p>"
          }
        ]
      }
    },
    "success": {
      "examples": [
        {
          "title": "Success-response:",
          "content": "res.json({\n    code: 200,\n    status: 0,\n    msg: \"获取地址列表成功\",\n    result: Array\n   })",
          "type": "json"
        }
      ]
    },
    "sampleRequest": [
      {
        "url": "/uni/getarea"
      }
    ],
    "version": "1.0.0",
    "filename": "routes/vue.js",
    "groupTitle": "Adress"
  },
  {
    "type": "post",
    "url": "/hybrid/uni/modify-area",
    "title": "修改默认接口",
    "description": "<p>修改默认接口</p>",
    "group": "Adress",
    "name": "modify-area",
    "parameter": {
      "fields": {
        "Parameter": [
          {
            "group": "Parameter",
            "optional": false,
            "field": "id",
            "description": "<p>地址id</p>"
          }
        ]
      }
    },
    "success": {
      "examples": [
        {
          "title": "Success-response:",
          "content": "res.json({\n    code: 200,\n    status: 0,\n    msg: \"修改默认成功\",\n    result: Array\n   })",
          "type": "json"
        }
      ]
    },
    "sampleRequest": [
      {
        "url": "/uni/modify-area"
      }
    ],
    "version": "1.0.0",
    "filename": "routes/vue.js",
    "groupTitle": "Adress"
  },
  {
    "type": "post",
    "url": "/hybrid/uni/modify-area",
    "title": "由id更改modify-item",
    "description": "<p>由id更改modify-item</p>",
    "group": "Adress",
    "name": "modify-area",
    "parameter": {
      "fields": {
        "Parameter": [
          {
            "group": "Parameter",
            "optional": false,
            "field": "id",
            "description": "<p>地址id</p>"
          }
        ]
      }
    },
    "success": {
      "examples": [
        {
          "title": "Success-response:",
          "content": "res.json({\n    code: 200,\n    status: 0,\n    msg: \"修改成功\",\n    result: Array\n   })",
          "type": "json"
        }
      ]
    },
    "sampleRequest": [
      {
        "url": "/uni/modify-area"
      }
    ],
    "version": "1.0.0",
    "filename": "routes/vue.js",
    "groupTitle": "Adress"
  },
  {
    "type": "post",
    "url": "/hybrid/uni/addcart",
    "title": "加入购物车接口",
    "description": "<p>加入购物车接口</p>",
    "group": "cart",
    "name": "addcart",
    "parameter": {
      "fields": {
        "Parameter": [
          {
            "group": "Parameter",
            "optional": false,
            "field": "info",
            "description": "<p>(加入购物车的具体信息)</p>"
          }
        ]
      }
    },
    "success": {
      "examples": [
        {
          "title": "Success-response:",
          "content": "res.json({\n    code: 200,\n    status: 0,\n    msg: \"加入购物车成功\",\n    result: string\n   })",
          "type": "json"
        }
      ]
    },
    "sampleRequest": [
      {
        "url": "/uni/addcart"
      }
    ],
    "version": "1.0.0",
    "filename": "routes/vue.js",
    "groupTitle": "cart"
  },
  {
    "type": "post",
    "url": "/hybrid/uni/addsub",
    "title": "购物车加减接口",
    "description": "<p>购物车加减接口</p>",
    "group": "cart",
    "name": "addsub",
    "parameter": {
      "fields": {
        "Parameter": [
          {
            "group": "Parameter",
            "optional": false,
            "field": "goodsId",
            "description": "<p>商品id</p>"
          },
          {
            "group": "Parameter",
            "optional": false,
            "field": "selectedId",
            "description": "<p>选择属性</p>"
          },
          {
            "group": "Parameter",
            "optional": false,
            "field": "selectedNum",
            "description": "<p>加减之后的数量</p>"
          }
        ]
      }
    },
    "success": {
      "examples": [
        {
          "title": "Success-response:",
          "content": "res.json({\n    code: 200,\n    status: 0,\n    msg: \"购物车加减成功\",\n    result: 1\n   })",
          "type": "json"
        }
      ]
    },
    "sampleRequest": [
      {
        "url": "/uni/addsub"
      }
    ],
    "version": "1.0.0",
    "filename": "routes/vue.js",
    "groupTitle": "cart"
  },
  {
    "type": "post",
    "url": "/hybrid/uni/cart",
    "title": "获取购物车数据接口",
    "description": "<p>获取购物车数据接口</p>",
    "group": "cart",
    "name": "cart",
    "success": {
      "examples": [
        {
          "title": "Success-response:",
          "content": "res.json({\n    code: 200,\n    status: 0,\n    msg: \"获取购物车数据成功\",\n    result: 购物车Array\n   })",
          "type": "json"
        }
      ]
    },
    "sampleRequest": [
      {
        "url": "/uni/cart"
      }
    ],
    "version": "1.0.0",
    "filename": "routes/vue.js",
    "groupTitle": "cart"
  },
  {
    "type": "post",
    "url": "/hybrid/uni/cart-delete",
    "title": "购物车删除接口",
    "description": "<p>购物车删除接口</p>",
    "group": "cart",
    "name": "cart-delete",
    "parameter": {
      "fields": {
        "Parameter": [
          {
            "group": "Parameter",
            "optional": false,
            "field": "goodsId",
            "description": "<p>商品id</p>"
          },
          {
            "group": "Parameter",
            "optional": false,
            "field": "selectedId",
            "description": "<p>选择属性</p>"
          }
        ]
      }
    },
    "success": {
      "examples": [
        {
          "title": "Success-response:",
          "content": "res.json({\n    code: 200,\n    status: 0,\n    msg: \"购物车删除成功\",\n    result: 1\n   })",
          "type": "json"
        }
      ]
    },
    "sampleRequest": [
      {
        "url": "/uni/cart-delete"
      }
    ],
    "version": "1.0.0",
    "filename": "routes/vue.js",
    "groupTitle": "cart"
  },
  {
    "type": "post",
    "url": "/hybrid/uni/cart-deleteall",
    "title": "购物车删除全部接口",
    "description": "<p>购物车删除全部接口 -清空</p>",
    "group": "cart",
    "name": "cart-deleteall",
    "success": {
      "examples": [
        {
          "title": "Success-response:",
          "content": "res.json({\n    code: 200,\n    status: 0,\n    msg: \"购物车删除全部成功\",\n    result: 1\n   })",
          "type": "json"
        }
      ]
    },
    "sampleRequest": [
      {
        "url": "/uni/cart-deleteall"
      }
    ],
    "version": "1.0.0",
    "filename": "routes/vue.js",
    "groupTitle": "cart"
  },
  {
    "type": "post",
    "url": "/hybrid/uni/cities",
    "title": "获取城市列表",
    "description": "<p>获取城市列表</p>",
    "group": "cities",
    "name": "cities",
    "success": {
      "examples": [
        {
          "title": "Success-response:",
          "content": "res.json({\n    code: 200,\n    status: 0,\n    msg: \"获取成功\",\n    result: Array\n   })",
          "type": "json"
        }
      ]
    },
    "sampleRequest": [
      {
        "url": "/uni/cities"
      }
    ],
    "version": "1.0.0",
    "filename": "routes/vue.js",
    "groupTitle": "cities"
  },
  {
    "type": "get",
    "url": "/hybrid/uni/goodlist",
    "title": "商品列表接口",
    "description": "<p>商品列表接口</p>",
    "group": "goods",
    "parameter": {
      "fields": {
        "Parameter": [
          {
            "group": "Parameter",
            "optional": false,
            "field": "itemType",
            "description": "<p>|| null</p>"
          }
        ]
      }
    },
    "name": "商品列表",
    "sampleRequest": [
      {
        "url": "/hybrid/uni/goodlist"
      }
    ],
    "version": "1.0.0",
    "filename": "routes/vue.js",
    "groupTitle": "goods"
  },
  {
    "type": "get",
    "url": "/hybrid/uni/details",
    "title": "商品详情接口",
    "description": "<p>商品详情接口</p>",
    "group": "goods",
    "parameter": {
      "fields": {
        "Parameter": [
          {
            "group": "Parameter",
            "optional": false,
            "field": "tradeItemId",
            "description": ""
          }
        ]
      }
    },
    "name": "商品详情",
    "sampleRequest": [
      {
        "url": "/hybrid/uni/details"
      }
    ],
    "version": "1.0.0",
    "filename": "routes/vue.js",
    "groupTitle": "goods"
  },
  {
    "type": "post",
    "url": "/hybrid/uni/collect-blog",
    "title": "收藏-接口",
    "description": "<p>收藏-接口</p>",
    "group": "others",
    "name": "collect-blog",
    "parameter": {
      "fields": {
        "Parameter": [
          {
            "group": "Parameter",
            "optional": false,
            "field": "AnyBuffer",
            "description": "<p>(二进制Binary)</p>"
          }
        ]
      }
    },
    "success": {
      "examples": [
        {
          "title": "Success-response:",
          "content": "res.json({\n    code: 200,\n    status: 0,\n    msg: \"修改头像成功\",\n    result: Array\n   })",
          "type": "json"
        }
      ]
    },
    "sampleRequest": [
      {
        "url": "/uni/collect-blog"
      }
    ],
    "version": "1.0.0",
    "filename": "routes/vue.js",
    "groupTitle": "others"
  },
  {
    "type": "post",
    "url": "/hybrid/uni/comment-blog",
    "title": "评论-接口",
    "description": "<p>评论-接口</p>",
    "group": "others",
    "name": "comment-blog",
    "parameter": {
      "fields": {
        "Parameter": [
          {
            "group": "Parameter",
            "optional": false,
            "field": "AnyBuffer",
            "description": "<p>(二进制Binary)</p>"
          }
        ]
      }
    },
    "success": {
      "examples": [
        {
          "title": "Success-response:",
          "content": "res.json({\n    code: 200,\n    status: 0,\n    msg: \"修改成功\",\n    result: Array\n   })",
          "type": "json"
        }
      ]
    },
    "sampleRequest": [
      {
        "url": "/uni/comment-blog"
      }
    ],
    "version": "1.0.0",
    "filename": "routes/vue.js",
    "groupTitle": "others"
  },
  {
    "type": "post",
    "url": "/hybrid/uni/support-blog",
    "title": "点赞-接口",
    "description": "<p>点赞-接口</p>",
    "group": "others",
    "name": "support-blog",
    "parameter": {
      "fields": {
        "Parameter": [
          {
            "group": "Parameter",
            "optional": false,
            "field": "AnyBuffer",
            "description": "<p>(二进制Binary)</p>"
          }
        ]
      }
    },
    "success": {
      "examples": [
        {
          "title": "Success-response:",
          "content": "res.json({\n    code: 200,\n    status: 0,\n    msg: \"修改头像成功\",\n    result: Array\n   })",
          "type": "json"
        }
      ]
    },
    "sampleRequest": [
      {
        "url": "/uni/support-blog"
      }
    ],
    "version": "1.0.0",
    "filename": "routes/vue.js",
    "groupTitle": "others"
  },
  {
    "type": "post",
    "url": "/users/login",
    "title": "登录接口",
    "description": "<p>登录接口</p>",
    "group": "users",
    "name": "login-user",
    "parameter": {
      "fields": {
        "Parameter": [
          {
            "group": "Parameter",
            "type": "String",
            "optional": false,
            "field": "phone",
            "description": "<p>User's phone</p>"
          },
          {
            "group": "Parameter",
            "type": "String",
            "optional": false,
            "field": "password",
            "description": "<p>User's password</p>"
          }
        ]
      }
    },
    "success": {
      "examples": [
        {
          "title": "Success-response:",
          "content": "res.json({\n    code: 200,\n    status: 0,\n    msg: \"登陆成功\",\n    result: {\n      login: true,\n      token\n    }\n  })\n  res.json({\n    code: 200,\n    status: -1,\n    msg: \"用户名或者密码错误\",\n    result: null\n  })\n  res.json({\n    code: 200,\n    status: -1,\n    msg: \"该用户尚未注册\",\n    result: null\n  })\n  res.json({\n    code: 200,\n    status: -1,\n    msg: '信息不完善,操作失败',\n    result: null\n  })",
          "type": "json"
        }
      ]
    },
    "sampleRequest": [
      {
        "url": "/users/login"
      }
    ],
    "version": "1.0.0",
    "filename": "routes/users.js",
    "groupTitle": "users"
  },
  {
    "type": "post",
    "url": "/hybrid/uni/modify-pwd",
    "title": "修改密码接口",
    "description": "<p>修改密码接口</p>",
    "group": "users",
    "name": "modify-pwd",
    "parameter": {
      "fields": {
        "Parameter": [
          {
            "group": "Parameter",
            "type": "String",
            "optional": false,
            "field": "oldPassword",
            "description": "<p>旧密码</p>"
          },
          {
            "group": "Parameter",
            "type": "String",
            "optional": false,
            "field": "password",
            "description": "<p>新密码</p>"
          }
        ]
      }
    },
    "success": {
      "examples": [
        {
          "title": "Success-response:",
          "content": "res.json({\n    code: 200,\n    status: 0,\n    msg: \"修改密码成功\",\n    result: response[0]\n  })\n  res.json({\n    code: 200,\n    status: -1,\n    msg: '修改失败',\n    result: null\n  })",
          "type": "json"
        }
      ]
    },
    "sampleRequest": [
      {
        "url": "/uni/modify-pwd"
      }
    ],
    "version": "1.0.0",
    "filename": "routes/vue.js",
    "groupTitle": "users"
  },
  {
    "type": "post",
    "url": "/users/quit",
    "title": "退出登录接口",
    "description": "<p>退出登录接口</p>",
    "group": "users",
    "name": "quit-user",
    "success": {
      "examples": [
        {
          "title": "Success-response:",
          "content": "res.json({\n    code: 200,\n    status: 0,\n    msg: '成功退出登录',\n    result: null\n   })",
          "type": "json"
        }
      ]
    },
    "sampleRequest": [
      {
        "url": "/users/quit"
      }
    ],
    "version": "1.0.0",
    "filename": "routes/users.js",
    "groupTitle": "users"
  },
  {
    "type": "post",
    "url": "/users/reg",
    "title": "注册接口",
    "description": "<p>注册接口</p>",
    "group": "users",
    "name": "register-user",
    "parameter": {
      "fields": {
        "Parameter": [
          {
            "group": "Parameter",
            "type": "String",
            "optional": false,
            "field": "username",
            "description": "<p>User's name</p>"
          },
          {
            "group": "Parameter",
            "type": "String",
            "optional": false,
            "field": "phone",
            "description": "<p>User's phone</p>"
          },
          {
            "group": "Parameter",
            "type": "String",
            "optional": false,
            "field": "password",
            "description": "<p>User's password</p>"
          }
        ]
      }
    },
    "success": {
      "examples": [
        {
          "title": "Success-response:",
          "content": "res.json({\n      code: 200,\n      status: 0,\n      msg: '注册成功',\n      result\n    })\n    res.json({\n      code: 200,\n      status: -1,\n      msg: '用户已注册',\n      result: null\n    })\n    res.json({\n      code: 200,\n      status: -1,\n      msg: '信息不完善,操作失败',\n      result: null\n    })",
          "type": "json"
        }
      ]
    },
    "sampleRequest": [
      {
        "url": "/users/reg"
      }
    ],
    "version": "1.0.0",
    "filename": "routes/users.js",
    "groupTitle": "users"
  },
  {
    "type": "post",
    "url": "/hybrid/uni/upload",
    "title": "上传头像接口",
    "description": "<p>上传头像接口- { Binary } 图片</p>",
    "group": "users",
    "name": "upload-img",
    "parameter": {
      "fields": {
        "Parameter": [
          {
            "group": "Parameter",
            "optional": false,
            "field": "AnyBuffer",
            "description": "<p>(二进制Binary)</p>"
          }
        ]
      }
    },
    "success": {
      "examples": [
        {
          "title": "Success-response:",
          "content": "res.json({\n    code: 200,\n    status: 0,\n    msg: \"修改头像成功\",\n    result: \"/avatar/\" + files.file.name // 返回值带上路径和名字,而public是静态目录省略\n   })",
          "type": "json"
        }
      ]
    },
    "sampleRequest": [
      {
        "url": "/uni/upload"
      }
    ],
    "version": "1.0.0",
    "filename": "routes/vue.js",
    "groupTitle": "users"
  },
  {
    "type": "post",
    "url": "/hybrid/uni/userinfo",
    "title": "获取用户信息接口",
    "description": "<p>获取用户信息接口</p>",
    "group": "users",
    "name": "userinfo",
    "success": {
      "examples": [
        {
          "title": "Success-response:",
          "content": "res.json({\n    code: 200,\n    status: 0,\n    msg: \"获取用户信息成功\",\n    result: response[0]\n  })",
          "type": "json"
        }
      ]
    },
    "sampleRequest": [
      {
        "url": "/uni/userinfo"
      }
    ],
    "version": "1.0.0",
    "filename": "routes/vue.js",
    "groupTitle": "users"
  }
] });
